import info from '../model/User'
export  const  UserStoreKey='hc-user'
class Auth{
  initUser(){
    PersistentStorage.persistProp<info>(UserStoreKey,{} as info)

  }
  getUser(){

    return AppStorage.get<info>(UserStoreKey)||{} as info

  }
  setUser(info:info){
    AppStorage.setOrCreate<info>(UserStoreKey,info)
  }
}
export const auth=new Auth();